package com.wx_shop.web.houtai;

import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.PropertyConfigurator;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.web.bind.annotation.CrossOrigin;

import javax.security.auth.login.Configuration;


@SpringBootApplication
@ServletComponentScan
@CrossOrigin
@MapperScan("com.wx_shop.web.houtai.IntMapper")
public class HoutaiApplication {

    private static final Logger logger = LoggerFactory.getLogger(HoutaiApplication.class);

    public static void main(String[] args) {
        BasicConfigurator.configure();
        logger.info("日志初始化");
        SpringApplication.run(HoutaiApplication.class, args);
    }
}
